package com.ky.my.controller;


import com.ky.common.vo.R;
import com.ky.my.service.BrowsingHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 浏览记录表 前端控制器
 * </p>
 *
 * @author hmt
 * @since 2024-06-17
 */
@RestController
@RequestMapping("/browsingHistory")
public class BrowsingHistoryController {
    @Autowired
   private BrowsingHistoryService browsingHistoryService;
    @RequestMapping("/findAll")
    public R findAll(){
        return browsingHistoryService.findAll();
    }
    @RequestMapping("/deleteById")
    public R deleteById(@RequestParam("historyId") Integer historyId){
        return browsingHistoryService.deleteByHistoryId(historyId);
    }
}

